package liwen.zhao.mappers;

import liwen.zhao.common.jd.pojo.CommonUser;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    CommonUser findCommonUserByName(@Param("userName") String userName,@Param("rightName") String rightName);

    CommonUser findCommonUserByNameAndPswAndAction(@Param("userName") String userName, @Param("psw") String psw, @Param("action") String action);
    
    CommonUser getCommonUserByUserName(String userName);
    
    void addCommonUser(CommonUser commonUser);
}
